//引入进程模块
const { fork } = require('child_process');
//创建子进程
const deleteFile = fork('../src/deleteFile.js');
//向子进程发送信息
deleteFile.send('deleteFile a');
//从子进程接收信息
deleteFile.on('message', data => {
    console.log(data);
    //停止进程
    process.exit(0);
})